package com.example.team.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


/****
 * 编写者：王轩
 * 时间：2023/10/27
 * 打卡信息-实体类
 */
public class Attendance {
    //id标识
    private Integer AttendanceID;
    //员工id
    private Integer EmployeeID;
    //打卡时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date ClockInTime;
    //签退时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date ClockOutTime;
    //登录ip地址
    private String IP;


    public Integer getAttendanceID() {
        return AttendanceID;
    }

    public void setAttendanceID(int attendanceID) {
        AttendanceID = attendanceID;
    }

    public Integer getEmployeeID() {
        return EmployeeID;
    }

    public void setEmployeeID(int employeeID) {
        EmployeeID = employeeID;
    }

    public Date getClockInTime() {
        return  ClockInTime;
    }

    public void setClockInTime(Date clockInTime) {
        ClockInTime = clockInTime;
    }

    public Date getClockOutTime() {
        return ClockOutTime;
    }

    public void setClockOutTime(Date clockOutTime) {
        ClockOutTime = clockOutTime;
    }

    public String getIP() {
        return IP;
    }

    public void setIP(String IP) {
        this.IP = IP;
    }
}
